package cn.hinglo.common.plugin.quartz;

import com.jfinal.plugin.IPlugin;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@AllArgsConstructor
@NoArgsConstructor
public class QuartzPlugin implements IPlugin {
    @Getter
    @Setter
    private String config;

    @Override
    public boolean start() {
        QuartzManager.getSingleton().start();
        return true;
    }

    @Override
    public boolean stop() {
        QuartzManager.getSingleton().stop();
        return false;
    }
}
